package vip.mtdp.asset.core.constants;

/**
 * @Description 记账状态
 * @Author Evans.wang
 * @since 2023/10/29 15:59
 **/
public enum PostingStateEnum {
    //1=初始化，2=处理成功，3=处理中，31=等待异步记账，4=失败
    INIT(1, "init"),
    SUCCESS(2,"success"),
    WAITING(3,"waiting"),
    WAITING_ASYNC_POSTING(31,"waiting_async_posting"),
    FAIL(4,"fail")
            ;

    private Integer code;

    private String label;

    private PostingStateEnum(Integer code, String label){
        this.code = code;
        this.label = label;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }
}
